package com.guofen.service.earthquake;

import com.guofen.pojo.Earthquake;

import java.util.List;
import java.util.Map;

public interface EarthquakeService {
    Map<String, Object> getAllEarthquake(int pageSize, int currentPage);
    Earthquake getById(String id);
    int delete(String id);
    int update(Earthquake earthquake);
    int insert(Earthquake earthquake);
    Map<String, Object> getByMag(double mag1, double mag2, int pageSize, int currentPage);
    List<Integer> getMagDistribution(int limit);
    List<Integer> getDepthDistribution(int limit);
    Map<String, Object> getByDate(long startDate, long endDate, int pageSize, int currentPage);
    Map<String, Object> getByDateAndMag(long startDate, long endDate, double mag1, double mag2,
                                        int pageSize, int currentPage);
    Map<String, Object> getByDistance(double lon, double lat, double distance,
                                      int pageSize, int currentPage);
    Map<String, Object> getByDistanceAndMag(double lon, double lat, double distance,
                                            double mag1, double mag2,
                                            int pageSize, int currentPage);
    Map<String, Object> getByTime(String startTime, String endTime,
                                  int pageSize, int currentPage);
    Map<String, Object> getByTimeAndMag(String startTime, String endTime, double mag1, double mag2,
                                        int pageSize, int currentPage);
    Map<String, Object> getByPlace(String place, int pageSize, int currentPage);
}
